package org.shj.springcloud.movie.controller;


import org.shj.springcloud.movie.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MovieController {
	
	@Autowired
	private UserFeignClient userFeignClient;
	
	@GetMapping("/user/{uid}")
	public User findByUserId(@PathVariable String uid){
		return this.userFeignClient.findById(uid);
	}
	
	
}
